package com.rmb.controller;

import com.rmb.annotation.SystemLog;
import com.rmb.entity.TaskPlanInfo;
import com.rmb.enums.LogType;
import com.rmb.service.TaskPlanInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


/**
 * @author wan
 */
@RestController
@RequestMapping("/rmb/taskPlanInfo")
public class TaskPlanInfoController {

    @Resource
    TaskPlanInfoService taskPlanInfoService;

    @GetMapping("/taskPlanInfoList")
    @SystemLog(description = "查询",type = LogType.SELETE)
    public List<TaskPlanInfo> taskPlanInfoList(){
        return taskPlanInfoService.taskPlanInfoList();
    }

    @GetMapping("/getAllDataSource")
    @SystemLog(description = "查询所有",type = LogType.SELETE)
    public List<String> findAllDataBase(){
        return taskPlanInfoService.findAllDataSource();
    }

}
